package com.Moch.AbstractTest;

public class Cycle extends Shape{

    private double r;
    static final private double PI = 3.14;

    public Cycle(double r) {
        this.r = r;
    }

    public void draw() {
        System.out.println("半径: r = " + r);
    }

    public void calcArea() {
        area = PI * r * r;
    }

}
